#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main()
{
    int year, month;
    scanf("%4d%02d", &year, &month);
    if (month >= 3 && month <= 5)
        printf("spring");
    else if (month >= 6 && month <= 8)
        printf("summer");
    else if (month >= 9 && month <= 11)
        printf("autumn");
    else
        printf("winter");
    return 0;



}